// 将数据存入cooike中，和存入localstorage意思差不多
import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
// 获取cookie
export function getToken() {
  return Cookies.get(TokenKey)
}
// 设置cookie
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
// 删除cookie
export function removeToken() {
  return Cookies.remove(TokenKey)
}
